package com.dv.driverless.service.impl;

import java.util.List;

import com.dv.driverless.domain.BasicDriver;
import com.dv.driverless.mapper.BasicDriverMapper;
import com.dv.driverless.service.IBasicDriverService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 司机信息Service业务层处理
 *
 * @author ruoyi
 * @date 2023-04-06
 */
@Service
public class BasicDriverServiceImpl implements IBasicDriverService
{
    @Autowired
    private BasicDriverMapper basicDriverMapper;

    /**
     * 查询司机信息
     *
     * @param id 司机信息主键
     * @return 司机信息
     */
    @Override
    public BasicDriver selectBasicDriverById(Long id)
    {
        return basicDriverMapper.selectBasicDriverById(id);
    }

    /**
     * 查询司机信息列表
     *
     * @param basicDriver 司机信息
     * @return 司机信息
     */
    @Override
    public List<BasicDriver> selectBasicDriverList(BasicDriver basicDriver)
    {
        return basicDriverMapper.selectBasicDriverList(basicDriver);
    }

    /**
     * 新增司机信息
     *
     * @param basicDriver 司机信息
     * @return 结果
     */
    @Override
    public int insertBasicDriver(BasicDriver basicDriver)
    {
        return basicDriverMapper.insertBasicDriver(basicDriver);
    }

    /**
     * 修改司机信息
     *
     * @param basicDriver 司机信息
     * @return 结果
     */
    @Override
    public int updateBasicDriver(BasicDriver basicDriver)
    {
        return basicDriverMapper.updateBasicDriver(basicDriver);
    }

    /**
     * 批量删除司机信息
     *
     * @param ids 需要删除的司机信息主键
     * @return 结果
     */
    @Override
    public int deleteBasicDriverByIds(Long[] ids)
    {
        return basicDriverMapper.deleteBasicDriverByIds(ids);
    }

    /**
     * 删除司机信息信息
     *
     * @param id 司机信息主键
     * @return 结果
     */
    @Override
    public int deleteBasicDriverById(Long id)
    {
        return basicDriverMapper.deleteBasicDriverById(id);
    }
}
